package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.njtoyo.taxi.admin.mapper.master.enums.CompanyWithdrawState;
import com.njtoyo.taxi.admin.mapper.master.enums.DriverWithdrawState;
import com.njtoyo.taxi.admin.mapper.master.enums.ExamineState;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
public class CompanyWithdraw implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long companyId;

    private BigDecimal amount;

    private Long bankId;

    @ApiModelProperty(value = "0:init,1:operated,2:done,3:cancelled,4:failed,5:rejected,6:front_end_done")
    private CompanyWithdrawState state;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;


    private String batchNo;

    private String msg;
    private String serialNo;
    private String extParam;


    /**
     * 银行流水号
     */
    private String bankSerialNo;

    /**
     * 打款
     */
    private Date withdrawTime;

    /**
     * 到账时间
     */
    private String receiptTime;

    // 操作人
    private Integer createId;

    // 审核人
    private Integer examineId;

    // 审核状态
    private ExamineState examineState;

}
